﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CatAndDog5
{
    class Monkey : Animal
    {
        public Monkey() : base()
        { }

        public Monkey(string name) : base(name)
        { }

        protected override string getVoice()
        {
            return "吱吱";
        }
    }


    class StoneMonkey : Monkey,IChange
    { 
        //可以使用父类实现的getVoice

        public StoneMonkey() : base()
        { }

        public StoneMonkey(string name) : base(name)
        { }

        public string ChangeTest()
        {
            return base.Shout() + " 我有72般变化!";
        }
    }
}
